package com.zhentao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.dto.product.CategoryBrandDto;
import com.zhentao.entity.product.Brand;
import com.zhentao.entity.product.CategoryBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【category_brand(分类品牌)】的数据库操作Mapper
* @createDate 2024-09-02 18:38:04
* @Entity com.zhentao.pojo.CategoryBrand
*/
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {

    Page<CategoryBrand> findByPage(@Param("page") Page<CategoryBrand> page,@Param("categoryBrandDto") CategoryBrandDto categoryBrandDto);

    List<Brand> findBrandByCategoryId(Long categoryId);
}




